#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include <queue>
#include <algorithm>
#include <ctime>
using namespace std;

int main()
{
    freopen("in.txt","w",stdout);
    srand(time(0));
    string s = "";
    int n = 1000000;
    for(int i=0;i<n;++i) s+=char(rand()%2+'a');
    cout<<s<<endl;
    s = "";
    for(int i=0;i<n;++i) s+=char(rand()%2+'a');
    cout<<s<<endl;
	return 0;
}
